Skip to content

fix(ci-cd): use POSIX dot operator instead of source in Jenkins snippet#882

Merged
amaan-bhati merged 1 commit into
mainfrom
fix/jenkins-posix-source
Jun 26, 2026
Merged

fix(ci-cd): use POSIX dot operator instead of source in Jenkins snippet#882
amaan-bhati merged 1 commit into
mainfrom
fix/jenkins-posix-source

Conversation

@pathakharshit

Copy link
Copy Markdown
Contributor

The Jenkins sh block runs under /bin/sh (dash on Ubuntu), which does not have source. This causes source install.sh to fail with source: not found.

Fix: replace source with . (the POSIX dot operator), which is equivalent and works in both sh and bash.

Only jenkins.md is affected — GitHub Actions and GitLab CI both default to bash where source works fine.

sh blocks in Jenkins Declarative Pipeline run under /bin/sh (dash on
Ubuntu), which does not have source. Replace with . which is the POSIX
equivalent and works in both sh and bash.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Harshit Pathak <harshit07pathak@gmail.com>

@amaan-bhati amaan-bhati left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@amaan-bhati amaan-bhati merged commit 380f2f9 into main Jun 26, 2026
7 checks passed
@amaan-bhati amaan-bhati deleted the fix/jenkins-posix-source branch June 26, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants